<template>
	<view>
		
		<view>
			<video :src="obj.video" style="width: 100%;" v-if="obj.video"></video>
			
			<view @click="upload(obj)" v-if="obj.otherFile" class="u-padding-30 $u-type-primary u-text-center">点击下载压缩包</view>
			
			<view class="u-padding-30" v-if="obj.remark">
				{{obj.remark}}
			</view>
			
		</view>
		
	</view>
</template>

<script>
	export default{
		data(){
			return{
				banShare:true,
				obj:{}
			}
		},
		onLoad(options) {
			if(options.item){
				this.obj=JSON.parse( options.item) 
			}
			
		},
		methods:{
			upload(item){
				uni.showModal({
					title:"请复制路径至浏览器下载",
					content:""+item.otherFile,
					confirmText:"复制",
					success:(res)=>{
						if(res.confirm){
							uni.setClipboardData({
								data:item.otherFile,
							})
						}
					}
				})
			},
		}
	}
</script>

<style>
</style>
